package com.fegin.api;

import feign.Feign;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author:RenPu
 * @Date: 2020/8/29 13:35
 * @Version: 1.0
 * @description:
 */


@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableFeignClients
public class HystrixFallbackApplication {

    public static void main(String[] args) {

        //获取方法的具体签名，用于指定方法进行超时限制，在配置文件进行配置
        //System.out.println( Feign.configKey(MyService.class,MyService.class.getMethod("retry",int.class)));
        SpringApplication.run(HystrixFallbackApplication.class, args);

    }


}
